﻿using Proxy.DynamicProxy;
using Proxy.Model;
using Proxy.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Proxy
{
    class Program
    {
        static void Main(string[] args)
        {

            try
            {
                User user = new User() { Name = "lee", Age = 11 };

                UserService userprocessor = TransparentProxy.Create<UserService>();
                userprocessor.RegstUser(user);

                Console.ReadKey();
            }
            catch (Exception)
            {

                throw;
            }

        }
    }
}
